package cn.t12.qg.goodsconsumer.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.jms.Queue;

@Configuration
public class ActiveMqConfig {

    // 抢购消息队列
    @Bean("goodsQueue")
    public Queue goodsQueue(){
        return new ActiveMQQueue("qg_goods_queue");
    }
}
